package com.cqupt.scanning.system.acl.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cqupt.scanning.system.acl.entity.AclUser;
import com.cqupt.scanning.system.acl.entity.dto.UserDTO;
import com.cqupt.scanning.system.acl.entity.vo.UserVO;
import com.cqupt.scanning.system.utils.result.R;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 宋宝梁
 * @since 2021-07-05
 */
public interface AclUserService extends IService<AclUser> {

    AclUser selectByUsername(String username);

    R getAllAdmin(Page<AclUser> page, String query);

    R addUser(UserVO userVO);

    R updateUser(UserDTO userDTO, Integer roleId);

    R removeUserById(Integer userId);

    R assignRole(Integer userId, Integer roleId);

    R getOneUser(Integer userId);
}
